import { ajax } from "@/utils/api";

export const createCategory = (id: any, name: string, config: any) => {
  return ajax.post(
    `/category/create/${id}`,
    {
      name,
    },
    {
      ...config,
    }
  );
};
